;; dashboard
(use-package projectile
;   ;;(projectile-mode +1)
;   ;; Recommended keymap prefix on macOS
;   ;(define-key projectile-mode-map (kbd "s-p") 'projectile-command-map)
;   ;; Recommended keymap prefix on Windows/Linux
;   ;(define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map)
   )

; (use-package page-break-lines
;   :config
;   (global-page-break-lines-mode t)
;   )

(use-package dashboard
  :ensure t
  :config
  (dashboard-setup-startup-hook))

  (setq initial-buffer-choice 
  		(lambda () (get-buffer-create "*dashboard*")))

  ;; Set the title
  (setq dashboard-banner-logo-title "Welcome to Emacs Dashboard")
  (setq dashboard-projects-backend 'projectile)
  ;; Set the banner
  ;(setq dashboard-startup-banner "d:/rayfe/Pictures/typora.png")
	(setq dashboard-startup-banner '1)
  ;; Value can be
  ;; 'official which displays the official emacs logo
  ;; 'logo which displays an alternative emacs logo
  ;; or 1 2 3 4

  (setq dashboard-items '((recents  . 10)
			  (bookmarks . 5)
                          (projects . 5)))
                        ;(agenda . 5)
                        ;(registers . 5)

    ;; Content is not centered by default. To center, set
  (setq dashboard-center-content t)

  ;; To disable shortcut "jump" indicators for each section, set
  (setq dashboard-show-shortcuts nil)

  (setq dashboard-set-navigator t)

(provide 'init-dashboard)
